package com.edu.hre.struts.form.admin;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.util.LabelValueBean;

import com.edu.hre.common.entity.HrePageInfo;
import com.edu.hre.db.pojo.HreDistrict;
import com.edu.hre.db.pojo.HreProvince;

public class LocationListForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4022413612705443937L;
	private String name = "";
	private String selectedDistrict = "";
	private String selectedProvince = "";
    private boolean canAdd = false;
    private boolean canDelete = false;
    private boolean isAsc = true;
    private int totalItems = 0;
	private int totalPage = 0;
    
    private List<OrgLocationForm> allLocations = new ArrayList<OrgLocationForm>();
    private List<LabelValueBean> allProvinces = new ArrayList<LabelValueBean>();
    private List<LabelValueBean> allDistricts = new ArrayList<LabelValueBean>();
    
    private List<HrePageInfo> listPages = new ArrayList<HrePageInfo>();
    
    public LocationListForm () {
    	
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getSelectedDistrict() {
		return selectedDistrict;
	}

	public void setSelectedDistrict(String selectedDistrict) {
		this.selectedDistrict = selectedDistrict;
	}

	public String getSelectedProvince() {
		return selectedProvince;
	}

	public void setSelectedProvince(String selectedProvince) {
		this.selectedProvince = selectedProvince;
	}

	public List<OrgLocationForm> getAllLocations() {
		return allLocations;
	}

	public void setAllLocations(List<OrgLocationForm> allLocations) {
		this.allLocations = allLocations;
	}

	public boolean isCanAdd() {
		return canAdd;
	}

	public void setCanAdd(boolean canAdd) {
		this.canAdd = canAdd;
	}

	public boolean isCanDelete() {
		return canDelete;
	}

	public void setCanDelete(boolean canDelete) {
		this.canDelete = canDelete;
	}

	public boolean isAsc() {
		return isAsc;
	}

	public void setAsc(boolean isAsc) {
		this.isAsc = isAsc;
	}

	public int getTotalItems() {
		return totalItems;
	}

	public void setTotalItems(int totalItems) {
		this.totalItems = totalItems;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public List<HrePageInfo> getListPages() {
		return listPages;
	}

	public void setListPages(List<HrePageInfo> listPages) {
		this.listPages = listPages;
	}
	
	public List<LabelValueBean> getAllProvinces() {
		return allProvinces;
	}

	public void setAllProvinces(List<LabelValueBean> allProvinces) {
		this.allProvinces = allProvinces;
	}

	public List<LabelValueBean> getAllDistricts() {
		return allDistricts;
	}

	public void setAllDistricts(List<LabelValueBean> allDistricts) {
		this.allDistricts = allDistricts;
	}
}
